<?php
require_once ("../src/db/connectdatabase.php");

function getIntro() {
	$con = new ConnectDB();
	$tbl = "baohiemtc";
	$fn = array('content');
	$condetion = array('idbh' => 'suckhoebh');
	return $con -> getvalue($tbl, $fn, $condetion);
}

$intro = getIntro();

if(count($intro) == 1) {
?>
<h3>Thông Tin Bảo Hiểm Sức Khỏe</h3>
<div>
	<?php echo($intro[0][0]) ?>
</div>
<br>
<div>
<input type="button" value="Chỉnh Sửa" onClick="window.location='admin.php?content=quanlybaohiem&&as=chinh-sua-bao-hiem-suc-khoe'" style="border-radius: 5px; padding:5px; width:100px; background:#03F; color:#FFF; font-weight:bold;" />
</div>

<?php } ?>